using System;
using System.Collections.Generic;
using System.Text;

namespace Payroll
{
    public class ChangeMailTransaction:ChangeMethodTransaction
    {
        private string itsAddress;

        public ChangeMailTransaction(int empid, string address)
            : base(empid)
        {
            itsAddress = address;
        }

        public override PaymentMethod GetMethod()
        {
            return new MailMethod(itsAddress);
        }
    }
}
